\documentclass[12pt,a4paper,catalan]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{textcomp}
%\usepackage{multirow}
\usepackage[usenames,dvipsnames]{color}
\usepackage[catalan]{babel}
%\usepackage[refpages]{gloss}

\newcommand{\comments}[1]{}
\newcommand{\TODO}[1]{}
\newcommand{\FIXIT}[1]{}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

%adding a page break before each section?

%\let\oldsection = \section
%\renewcommand{\section}[1]{
%	\pagebreak
%	\oldsection{#1}
%}

\title{Memòria del projecte}
\author{Adrià Ribatallada i Torelló}

\date{\today}

%\makegloss
%\makeindex

\begin{document}

\lstset{
  language=C++,
  keywordstyle=\color{blue}\bfseries,
  commentstyle=\color{ForestGreen},
  frame=ltrb,
  framesep=2pt,
  extendedchars=false,
  showstringspaces=false,
  breaklines=true
}

%\maketitle

\input{./MemoriaTitle.tex}

\clearpage

\input{./MemoriaThank.tex}

\clearpage

\tableofcontents

\clearpage\thispagestyle{empty}
\cleardoublepage\thispagestyle{empty}

\newpage 
\vspace*{\fill}
\pagebreak

% *** PART ***

\chapter{Introducció}

\input{./MemoriaIntro.tex}

% *** PART ***

\clearpage
\chapter{Objectius}

\input{./MemoriaObjts.tex}

% *** PART ***

\clearpage
\chapter{Estudi Tecnològic}

\input{./MemoriaEstudi.tex}

% *** PART ***

\clearpage
\chapter{Desenvolupament}

%\input{./MemoriaEspec.tex}

% *** PART ***

\clearpage
\chapter{Implementació}

%\input{./MemoriaImplm.tex}

% *** PART ***

\clearpage
\chapter{Millores i possibles ampliacions (Further development)}

%\input{./MemoriaFrthr.tex}

% *** PART ***

\clearpage
\chapter{Conclusions}

%%\input{./MemoriaConcl.tex}

% *** PART ***

\clearpage
\appendix
\chapter{Annexos}

%%\input{./MemoriaAnnex.tex}

% *** PART ***

%\clearpage
%\chapter{Glossari}

%\printgloss{glsbase,Memoria}

\clearpage

%\input{./MemoriaBibli.tex}

\end{document}
